<div ng-controller="AuthorizationCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/authrize/list">{{'Authorization'| translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <!-- <a href="#/item/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a> -->
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'keyword'|translate}}"  ng-model="keyword">
          <button class="sui-btn btn-primary" type="submit" ng-click="getAuthorizationList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'Supplierid'|translate}}</th>
                <th>{{'supply_name'|translate}}</th>
                <th>{{'payment_type'|translate}}</th>
                <th>{{'created_at'|translate}}</th>
                <th>{{'end_date'|translate}}</th>
                <th></th>
            </tr>
        </thead>
        
        <tbody>
            <tr ng-repeat="authorization in authorizationlist">
                <td>{{authorization.supplier_id}}</td>
                <td>{{authorization.supplier_nick}}</td>
                <td>{{authorization.auth_payway}}</td>
                <td>{{authorization.start_date | ddtt}}</td>
                <td>{{authorization.end_date | ddtt}}</td>
                <td>
                    <a href="#/authorization/add?id={{authorization.cooperate_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <button  ng-show="!authorization.seller_agree" type="button" class="sui-btn btn-primary" ng-click="Consentauthorization(authorization.cooperate_id)">审核</button>
                    <button type="button" class="sui-btn btn-danger" ng-click="delauthorization(authorization.cooperate_id)">{{'delete'|translate}}</button>
                    <a   ng-show="authorization.seller_agree" href="#/authorization/item?id={{authorization.cooperate_id}}" class="sui-btn btn-success">商品</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <!-- <pager page-no="1" page-size="pageSize" total="itemsTotal" get-data="getItemList(pageNo)"></pager> -->
     <!-- 分页end -->
</div>
